﻿namespace GeneratorDemo1
{
    public partial class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");
            HelloFrom("小明");
            Console.ReadKey();
        }

        static partial void HelloFrom(string name);
    }

    [Custom]
    public class Test
    {
        public virtual void Write(string msg)
        {
            Console.WriteLine($"Output: {msg}");
        }
    }

    [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Interface)]
    public class CustomAttribute : Attribute
    {

    }
}